package com.chen.config;

import io.swagger.v3.oas.models.ExternalDocumentation;
import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Info;
import org.springdoc.core.GroupedOpenApi;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * ClassName: SpringDocConfig
 * Package: com.chen.config
 * Description:
 *
 * @Author 陈俊辉
 * @Create 2024/4/11 4:30
 * @Version 1.0
 */
@Configuration
public class SpringDocConfig {
    @Bean
    public OpenAPI myOpenAPI() {
        return new OpenAPI()
                .info(new Info()
                        .title("itcast-管理系统")
                        .description("This is a manager project")
                        .version("1.0.0"))
                .externalDocs(new ExternalDocumentation()
                        .description("Find out more about this API")
                        .url("https://example.com/apidocs"));

    }


}
